﻿using System.IO;

namespace TinyAsset
{
    public interface ISerializable
    {
        void Serialize(Stream stream);

        void Deserialize(Stream stream);
    }

    public abstract class BeanBase : ISerializable
    {
        public abstract void Serialize(Stream stream);

        public abstract void Deserialize(Stream stream);
    }
}
